package com.lienlq.voicemusic.entity;

import android.os.Parcel;
import android.os.Parcelable;

public class Song implements Parcelable {
	
	public String songName;
	public String songlink;
	public String artistName;
	
	public Song(){};
	
	private Song(Parcel in)
	{
		songName=in.readString();
		songlink=in.readString();
		artistName=in.readString();
	}
	
	public String getSongname()
	{
		return songName;
	}
	public String getSonglink()
	{
		return songlink;
	}
	
	
	public static final Parcelable.Creator CREATOR =new Parcelable.Creator(){

		@Override
		public Song createFromParcel(Parcel in) { 
			return new Song(in);
		}

		@Override
		public Song[] newArray(int size) {
			// TODO Auto-generated method stub
			return new Song[size];
		}
		
	};

	@Override
	public int describeContents() { 
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) { 
		dest.writeString(songName);
		dest.writeString(songlink);
		dest.writeString(artistName);
	}

}
